<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>爬取网页示例</title>
</head>
<body>
    <div id="content"></div>
    <script>
        var data = [
            {
                title: '美卓网',
                desc: '爬取日历有关的图片',
                url: 'http://localhost:2020/crawl/meizhuo'
            }
        ]

        const $view = document.getElementById('content')
        var innerText = ''
        data.forEach((obj) => {
            innerText += `
                <div class='content'>
                    <p>${obj.title}</p>
                    <p>${obj.desc}</p>
                    <a href=${obj.url} target='_blank'>点击测试</a>
                    <p>----------------------------</p>
                </div>
            `
        })
        $view.innerHTML = innerText
        
    </script>
</body>
</html>